//
//  SettingTableViewCell.m
//  QuickCure
//
//  Created by 马太行 on 16/9/12.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "SettingTableViewCell.h"

@implementation SettingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}
- (instancetype) initWithSetting:(NSIndexPath *)indexPath
{
    self = [super init];
    
    switch (indexPath.row) {
        case 0:
        {
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(25, 17, 110, 20)];
            label.text = @"意见反馈";
            [self.contentView addSubview:label];
            
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
        }
            break;
        case 1:
        {
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(25, 17, 110, 20)];
            label.text = @"加号符号说明";
            [self.contentView addSubview:label];
            
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
        }
            break;
        case 2:
        {
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(25, 17, 110, 20)];
            label.text = @"修改密码";
            [self.contentView addSubview:label];
            
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
        }
            break;
        case 3:
        {
            //文字
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(25, 17, 110, 20)];
            label.text = @"注销用户";
            [self.contentView addSubview:label];
           
            //样式
            [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
        }
            break;
            
        default:
            break;
    }
    return  self;
}
@end
